﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TasksLog
{
    public class user
    {
        public string name { get; set; }
        public string secondName { get; set;}
    }
    public partial class test : Form
    {
        public test()
        {
            InitializeComponent();
            var users = new List<user>();
            users.Add(new user() { 
                name = "Artem",
                secondName = "Domalevsky"
            });
            users.Add(new user() { 
                name = "Slava",
                secondName = "Pinchuk"
            });
            dataGridView1.DataSource = users;
            dataGridView1.Show();
        }
    }
}
